﻿@model CmsUserContainer
@{
    Layout = "~/admin/Templates/TelerikAdministration.cshtml";
    ResFile = "cms_Users";
}

@{
    ViewBag.Title = _("Edit user");
}

<p><a class="b-back-link" href="/admin/cmsuser"><i class="b-icon"></i>@_("Back to Users")</a></p>

<h1>@_("Edit user details")</h1>

@using (Html.BeginForm())
{
    @Html.HiddenFor(p => p.Id)
    @Html.HiddenFor(p => p.LoginName)
    @( Html.Telerik().TabStrip().Name("UserDetailsTabStrip")
       .Items(p =>
       {
           p.Add().Text(_("User details")).Content(Html.Partial("UserDetails", Model).ToHtmlString()).Selected(true);
           p.Add().Text(_("Account details")).LoadContentFrom("accountdetails", "cmsuser", new { id = Model.Id }).Visible(Model.IsCanSetPassword);
       })
)
    <br />
    <input class="b-button" id="btnSave" name="btnSave" type="submit" value="@_("Save user")" />
}

